var gulp = require('gulp');
var uglify = require('gulp-uglify');  
var concat = require('gulp-concat');

gulp.task('minUI', function() {  
    gulp.src([
        'jquery-easyui/v1.5.2/plugins/jquery.parser.js',
        'jquery-easyui/v1.5.2/plugins/jquery.draggable.js',
        'jquery-easyui/v1.5.2/plugins/jquery.droppable.js',
        'jquery-easyui/v1.5.2/plugins/jquery.resizable.js',
        'jquery-easyui/v1.5.2/plugins/jquery.tooltip.js',
        'jquery-easyui/v1.5.2/plugins/jquery.progressbar.js',
        'jquery-easyui/v1.5.2/plugins/jquery.validatebox.js',
        'jquery-easyui/v1.5.2/plugins/jquery.textbox.js',
        'jquery-easyui/v1.5.2/plugins/jquery.panel.js',
        'jquery-easyui/v1.5.2/plugins/jquery.linkbutton.js',
        'jquery-easyui/v1.5.2/plugins/jquery.window.js',
        'jquery-easyui/v1.5.2/plugins/jquery.dialog.js',
        'jquery-easyui/v1.5.2/plugins/jquery.messager.js',
        'jquery-easyui/v1.5.2/plugins/jquery.combo.js',
        'jquery-easyui/v1.5.2/plugins/jquery.tree.js',
        'jquery-easyui/v1.5.2/plugins/jquery.combobox.js',
        'jquery-easyui/v1.5.2/plugins/jquery.combotree.js'
        ])
        .pipe(concat('easyui.min.js'))
        .pipe(uglify())
        .pipe(gulp.dest('jquery-easyui/v1.5.2'));
});